package jbase.project.system.logs;

import java.util.Map;

import jbase.project.system.exception.SysException;

public class DefaultSysLoger implements SysLoger {

	DefaultSysLoger() {
	}

	@Override
	public void log(SysException e, String type, String message, Map<String, Object> data) {
		e.getException().printStackTrace();
		System.out.println("type:" + type + "\tmessage:" + message + "\tdata:" + data);
	}

	@Override
	public void log(SysException e, String type, String message) {
		e.getException().printStackTrace();
		System.out.println("type:" + type + "\tmessage:" + message);
	}

	@Override
	public void log(SysException e, String message) {
		e.getException().printStackTrace();
		System.out.println("message:" + message);
	}

	@Override
	public void log(Object object, String message) {
		System.out.println(message);
	}

	@Override
	public void log(String message) {
		System.out.println(message);
	}

	@Override
	public void log(SysException e) {
		System.out.println(e.getStackTrace());
	}

}
